﻿<UserControl x:Class="MathematicallySafe.HeadCounter.Views.LootView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Initialized="LootViewInitialized">
    
    <UserControl.Resources>

        <DataTemplate x:Key="DownloadItemCellTemplate">
            <Button Command="{Binding Path=DownloadItemCommand}" Content="Refresh" />
        </DataTemplate>

    </UserControl.Resources>
    
    <Grid Style="{StaticResource TabContainer}">
        <ListView Name="listViewLootTable" Grid.Row="1" Grid.Column="0" 
                  ItemContainerStyle="{StaticResource ListViewItemStyle}" ItemsSource="{Binding Path=LootTable}" >
            <ListView.View>
                <GridView>
                    <GridViewColumn Width="NaN" CellTemplate="{StaticResource ItemIdCellTemplate}" Header="ID"/>
                    <GridViewColumn Width="250" CellTemplate="{StaticResource ItemCellTemplate}" Header="NAME"/>
                    <GridViewColumn Width="75" CellTemplate="{StaticResource ItemiLevelCellTemplate}" Header="iLEVEL"/>
                    <GridViewColumn Width="NaN" CellTemplate="{StaticResource ItemSlotCellTemplate}" Header="SLOT"/>
                    <GridViewColumn Width="NaN" CellTemplate="{StaticResource ItemBossCellTemplate}" Header="BOSS"/>
                    <GridViewColumn Width="NaN" CellTemplate="{StaticResource DownloadItemCellTemplate}" />
                </GridView>
            </ListView.View>
        </ListView>
    </Grid>
    
</UserControl>
